package com.example.login.Controller;

import com.example.login.Mapper.SearchMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {

    @Autowired
    SearchMap searchMap;
    @RequestMapping("/s")
    public String  getUser(Model model)
    {
//       String sql="select * from xtshop_user where username='xc'";
//       List<Map<String,Object>> map=jdbcTemplate.queryForList(sql);
//       if (map.get(0).get("passwords") instanceof String )System.out.println("p");
//       else {System.out.println(map.get(0).get("passwords").getClass());}
        System.out.println(searchMap.searchMp3("红色MP3"));
        //userMap.Register("sd","123");
       return "ok";
    }
}
